package com.etc.entity;

import javax.persistence.Column;
import javax.persistence.Id;

/**
 * 商品表
 * 
 * @author Administrator
 *
 */
public class Goods {
	@Id
	@Column(name="gId")
	private Integer gId;// 商品编号
	@Column(name="gName")
	private String gName;// 商品名
	@Column(name="gPrice")
	private String gPrice;// 商品价格
	@Column(name="brandId")
	private Integer brandId;// 品牌编号
	@Column(name="spuId")
	private Integer spuId;// 商品参数号
	@Column(name="skuId")
	private Integer skuId;// 商品的库存编号
	@Column(name="cateOneid")
	private Integer cateOneid;// 一级类目
	@Column(name="cateTwoid")
	private Integer cateTwoid;// 二级类目
	@Column(name="cateThreeid")
	private Integer cateThreeid;// 三级类目
 
	public Goods() {
		// TODO Auto-generated constructor stub
	}

	public Goods(Integer gId, String gName, String gPrice, Integer brandId, Integer spuId, Integer skuId,
			Integer cateOneid, Integer cateTwoid, Integer cateThreeid) {
		super();
		this.gId = gId;
		this.gName = gName;
		this.gPrice = gPrice;
		this.brandId = brandId;
		this.spuId = spuId;
		this.skuId = skuId;
		this.cateOneid = cateOneid;
		this.cateTwoid = cateTwoid;
		this.cateThreeid = cateThreeid;
	}

	public Integer getgId() {
		return gId;
	}

	public void setgId(Integer gId) {
		this.gId = gId;
	}

	public String getgName() {
		return gName;
	}

	public void setgName(String gName) {
		this.gName = gName;
	}

	public String getgPrice() {
		return gPrice;
	}

	public void setgPrice(String gPrice) {
		this.gPrice = gPrice;
	}

	public Integer getBrandId() {
		return brandId;
	}

	public void setBrandId(Integer brandId) {
		this.brandId = brandId;
	}

	public Integer getSpuId() {
		return spuId;
	}

	public void setSpuId(Integer spuId) {
		this.spuId = spuId;
	}

	public Integer getSkuId() {
		return skuId;
	}

	public void setSkuId(Integer skuId) {
		this.skuId = skuId;
	}

	public Integer getCateOneid() {
		return cateOneid;
	}

	public void setCateOneid(Integer cateOneid) {
		this.cateOneid = cateOneid;
	}

	public Integer getCateTwoid() {
		return cateTwoid;
	}

	public void setCateTwoid(Integer cateTwoid) {
		this.cateTwoid = cateTwoid;
	}

	public Integer getCateThreeid() {
		return cateThreeid;
	}

	public void setCateThreeid(Integer cateThreeid) {
		this.cateThreeid = cateThreeid;
	}

	@Override
	public String toString() {
		return "Goods [gId=" + gId + ", gName=" + gName + ", gPrice=" + gPrice + ", brandId=" + brandId + ", spuId="
				+ spuId + ", skuId=" + skuId + ", cateOneid=" + cateOneid + ", cateTwoid=" + cateTwoid
				+ ", cateThreeid=" + cateThreeid + "]";
	}

}
